import Vue from 'vue'
import Router from 'vue-router'


import Home from '../components/Home.vue'
import Follow from '../components/Follow.vue'
import Column from '../components/Column.vue'
import UserInfo from '../components/UserInfo.vue'


Vue.use(Router)

const routes = [

  { path: '', redirect: '/home' },
  {
    path: '/home',
    component: Home
  },
  {
    path: '/follow',
    component: Follow
  },
  {
    path: '/column',
    component: Column
  },
  {
    path: '/user-info',
    component: UserInfo
  }
]

const router = new Router({
  mode: 'history',
  scrollBehavior: () => ({y:0}),
  routes
})

export default router
